package com.haiwen.boot.mapper;

import com.haiwen.boot.pojo.Blog;
import com.haiwen.boot.pojo.BlogWithBLOBs;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface BlogMapper {
    int deleteByPrimaryKey(Integer blId);
    int insert(BlogWithBLOBs record);
    int insertSelective(BlogWithBLOBs record);
    BlogWithBLOBs selectByPrimaryKey(Integer blId);
    int updateByPrimaryKeySelective(BlogWithBLOBs record);
    int updateByPrimaryKeyWithBLOBs(BlogWithBLOBs record);
    int updateByPrimaryKey(Blog record);
    //列表展示
    List<BlogWithBLOBs> listShow(Boolean isdel);
    //title查询
    BlogWithBLOBs selectByTitle(String title);
    //首页数据的展示
    List<BlogWithBLOBs> blogShow(Boolean isShow);
    //阅读
    int Reading(@Param("reading") String reading,@Param("id") Integer id);
    //点赞
    int like();

}
